package ar.edu.utn.frgp.labtec.actions.administracion.laboratorio;

import java.util.List;

import ar.edu.utn.frgp.labtec.actions.BaseAction;
import ar.edu.utn.frgp.labtec.entities.Departamento;
import ar.edu.utn.frgp.labtec.entities.Laboratorio;
import ar.edu.utn.frgp.labtec.service.GestionDepartamentoService;
import ar.edu.utn.frgp.labtec.service.GestionLaboratorioService;


public class InitNuevoLaboratorioAction extends BaseAction {

	private static final long serialVersionUID = 1L;
	
	private List<Departamento> departamentoList;
	private String depto;
	private String nombreLab;
	private String iniciales;
	private List<Laboratorio> laboratorioList;
	
	
	@Override
	public String execute() throws Exception {
		//Traemos todos los departamentos
		GestionDepartamentoService departamentoService = (GestionDepartamentoService) getContext().getBean("gestionDepartamentoService");
		departamentoList = departamentoService.getDepartamentos();
		
		//Traemos todos los laboratorios
		GestionLaboratorioService laboratorioService = (GestionLaboratorioService) getContext().getBean("gestionLaboratorioService");
		laboratorioList = laboratorioService.getLaboratorios();
		
		return SUCCESS;
	}


	public List<Departamento> getDepartamentoList() {
		return departamentoList;
	}


	public void setDepartamentoList(List<Departamento> departamentoList) {
		this.departamentoList = departamentoList;
	}


	public String getDepto() {
		return depto;
	}


	public void setDepto(String depto) {
		this.depto = depto;
	}


	public String getNombreLab() {
		return nombreLab;
	}


	public void setNombreLab(String nombreLab) {
		this.nombreLab = nombreLab;
	}


	public String getIniciales() {
		return iniciales;
	}


	public void setIniciales(String iniciales) {
		this.iniciales = iniciales;
	}


	public List<Laboratorio> getLaboratorioList() {
		return laboratorioList;
	}


	public void setLaboratorioList(List<Laboratorio> laboratorioList) {
		this.laboratorioList = laboratorioList;
	}
	
	

}
